package com.imchenio.springscheduleexample.instance03;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class EnhanceSchedule {

    @EnhanceScheduled(id = 1)
    public void run() throws Exception {
        log.info("EnhanceSchedule run 1");
        Thread.sleep(2000);
    }

    //@EnhanceScheduled(id = 2)
    public void run2() {
        log.info("EnhanceSchedule run 2");
    }

}
